﻿using System;
using System.Collections.Generic;

namespace Currency.Infra.IEntities
{
    /// <summary>
    /// 通用分页信息类
    /// </summary>
    public interface IPageModel<out T>
    {
        /// <summary>
        /// 当前页标
        /// </summary>
        int Page { get; }
        /// <summary>
        /// 总页数
        /// </summary>
        int PageCount { get; }
        /// <summary>
        /// 数据总数
        /// </summary>
        int DataCount { get; }
        /// <summary>
        /// 每页大小
        /// </summary>
        int PageSize { get; }
        /// <summary>
        /// 返回数据
        /// </summary>
        IReadOnlyList<T> Data { get;}

    }
}
